﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Day1
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void bnt01_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Hello World");
            System.Diagnostics.Debug.WriteLine("");
        }

        private void bntShowMaboy_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MyFavMV.xaml", UriKind.RelativeOrAbsolute));
        }

        private void bntShowFavImage_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MyFavPicturePano.xaml", UriKind.RelativeOrAbsolute));
        }

        private void bntShowMyUtility_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MyUtility.xaml", UriKind.RelativeOrAbsolute));
        }

        private void bntDemoGrid_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/DemoGrid.xaml", UriKind.RelativeOrAbsolute));
        }

        private void bntDemoStackPanel_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/DemoStackPanel.xaml", UriKind.RelativeOrAbsolute));
        }

        private void bntDemoCanvas_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/DemoStackPanel.xaml", UriKind.RelativeOrAbsolute));
        }
    }
}